package com.k2091.washcar.service;

import com.k2091.washcar.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.k2091.washcar.entity.Cleaner;
import com.k2091.washcar.entity.FormInline;
import com.k2091.washcar.entity.Users;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
public interface IAdminService extends IService<Admin> {

    //增加用户
    int insertUser(Users users);

    //修改用户信息
    int updateUser(Users users);

    //增加洗车员
    int insertCleaner(Cleaner cleaner);

    //修改洗车员信息
    int updateCleaner(Cleaner cleaner);

    //冻结用户
    int freezeUser(Long id);

    //冻结洗车员
    int freezeCleaner(Long id);

    List<Admin> selectAdmin(FormInline formInline);

    int deleteAdmin(@Param("id") Long id);

    int insertAdmin(Admin admin);

    int upStatus(@Param("id")Long id,@Param("status")int status);

    //按id查询(是否已存在
    Admin selectAdminById(Long id);

    int upAdmin(Admin admin);

    Admin selectByNameAndPassword(String name,String password);

}
